package org.fing.edu.uy.esbadp.logger;

public class LogProperty {

	public static final String PROPERTY_DEBUG_MODE = "esbadp.level.debug";
	
	private static LogProperty instance;
	private boolean debug_mode;
	
	private LogProperty(){
		debug_mode = System.getProperty(PROPERTY_DEBUG_MODE) != null ? System.getProperty(PROPERTY_DEBUG_MODE).equalsIgnoreCase("true") : false;
	}
	
	public static synchronized LogProperty getInstance(){
		if(instance == null){
			instance = new LogProperty();
		}
		return instance;
	}

	public boolean isDebug_mode() {
		return debug_mode;
	}
	
}
